package com.example.demo.create.factory.factory_method;

/**
 * Created by zzz on 2021/1/28 下午11:19
 */
public class FactoryMethodTest {

    public static void main(String[] args) {
        AbstractFactory phoneFactory = new PhoneFactory();
        phoneFactory.createProduct().print();

        AbstractFactory computerFactory = new ComputerFactory();
        computerFactory.createProduct().print();
    }

}
